﻿var menu_prelink=null;  
var g_UserLanguage = "0";
var WpsRootPath="";	
  
function getXmlHttp(){
	var objXMLHttp = null;
	if(window.XMLHttpRequest){
		objXMLHttp = new XMLHttpRequest();}
	else if(window.ActiveXObject){
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");}
	return objXMLHttp;
}

  
 //返回代理HTML
 function ajax_getAgentReturnHTML(vUrl){
   var xmlhttp_ser = getXmlHttp();
   xmlhttp_ser.open("POST",vUrl,false);
   xmlhttp_ser.send();         
   return xmlhttp_ser.responseText;    
 }
 
 function ajax_getReturnText(vUrl){
   return ajax_getAgentReturnHTML(vUrl); 	
 }	 
 //Ajax返回XML
 function ajax_getReturnXML(vUrl){
   var xmlhttp_ser = getXmlHttp();
   xmlhttp_ser.open("POST",vUrl,false);
   xmlhttp_ser.send();     
   return xmlhttp_ser.responseXML;
 }
